//
//  GKZYRankingWebViewController.m
//  GKZYAid
//
//  Created by tony on 16/3/9.
//  Copyright © 2016年 GKZYAid. All rights reserved.
//

#import "GKZYRankingWebViewController.h"
#import "GKZYSortLeftBarButtonItemView.h"

@implementation GKZYRankingWebViewController

-(void)viewDidLoad{

    [super viewDidLoad];
    GKZYSortLeftBarButtonItemView *leftBBI = [[GKZYSortLeftBarButtonItemView alloc]initWithFrame:CGRectMake(0, 0, 60, 30)];
    UITapGestureRecognizer *tap6 = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(back)];
    [leftBBI addGestureRecognizer:tap6];
    UIBarButtonItem *bar = [[UIBarButtonItem alloc]initWithCustomView:leftBBI];
    self.navigationItem.leftBarButtonItem = bar;


    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.webURl]]];
    [self.view addSubview:webView];
    
    self.navigationItem.title = self.titile;
    
}

-(void)back{

    [self.navigationController popViewControllerAnimated:YES];

}

@end
